<?php
return array(//'配置项'=>'配置值'
    'GROUP_NAME' => 'Admin',

    'SESSION_EXPIRE' => 300, /*SESSION过期时间(分钟)*/
    'SESSION_NAME' => 'Admin_SESSION', /*SESSION名称,默认Admin_SESSION,多项目一个服务器避免重复*/
    'SESSION_REDIR' => 'Login/index', /*未登录拦截后,跳转页面*/
    'SESSION_MISS' => array('Login', 'API', 'APIGET', 'WxSendMsg', 'System'),
    'LOAD_EXT_CONFIG' => 'navigation',

    'PF_retail_price' => 999, /*
        * 书籍语言种类
        */

    'BOOK_LANGUAGES' => array('中文', '英文', '其他',),

    /*
     * 书籍包装规格
    */

    'BOOK_PACKING' => array('平装', '精装', '平装-套装', '精装-套装',),

    /*
     * 书籍新旧程度
     */

    'BOOK_LEVEL' => array('全新', '9.5成色新', '8成色新',), /*
       * 书籍在库状态
       */

    'BOOK_STATE' => array('在库', '未入库',),

    //项目参数配置
    'YZ_URL' => ' https://open.youzan.com/oauth/authorize', 'URL_ROOT' => 'http://118.89.45.116/Book/index.php/Login/Handle', 'CLIENT_ID' => '65351fadf6e4cd7d9a', 'CLIENT_SECRET' => 'e738cbaf572e7790eb14e8a771d046fa', 'YZ_ID' => '19401371',


    'BOOK_LS' => 'ID as book_id ,
         TITLE    as book_name,
         PIC_URL  as  book_img ,
         Y_PRICE  as  book_old_money,
         XS_PRICE as book_pay_money,

         STOCK as book_num ,
         SJ_TIME,
         INFO',
    'BLACK_BOOK_ADMIN_LS' => 'ID  ,
         TITLE  ,
         PIC_URL ,
         PRESS,
         AUTHOR,
         PACKING_SPECIFICATION,
         ISBN',

    'ADMIN_BOOK_LS' => '
         ts_book.ID,
         ts_book.LOOK_NUM,
         ts_book.TITLE,
         ts_book.ISBN,
         ts_book.AUTHOR,
         ts_book.PRESS,
         ts_book.region_one,
         ts_book.region_two,
         ts_book.SXJ,
         ts_book.STOCK,
         ts_book.PACKING_SPECIFICATION,
         ts_book.SORT,
         ts_book.STATE,
         ts_book.AGE,
         ts_book.RED,
         ts_book.IS_BLACK,
         ts_book.PIC_URL,
         ts_book.Y_PRICE,
         ts_book.HS_PRICE,
         ts_book.XS_PRICE,
         ts_book.SCORE',
    'ADMIN_SBOOK_LS' => '
         ts_sbook.ID,
         ts_sbook.TITLE,
         ts_sbook.ISBN,
         ts_sbook.AUTHOR,
         ts_sbook.PRESS,
         ts_sbook.region_one,
         ts_sbook.region_two,
         ts_sbook.Y_PRICE,
         ts_sbook.PACKING_SPECIFICATION,
         ts_sbook.AGE,
         ts_sbook.SM_TIME,
         ts_sbook.OPENID,
         ts_sbook.PIC_URL',


    'BOOK_FIELD' => 'ID as book_id ,
         TITLE as book_name,
         PIC_URL as book_img ,
         BOOK_VIDEO as book_video,
         ISBN as book_code,
         AUTHOR as book_author,
         PRESS as book_press ,
         PUBLICATION_DATE as book_press_time,
         PACKING_SPECIFICATION,
         BOOK_SIZE,
         LANGUAGES as region_id_language,
         PAGE,
         AGE as age_id ,
         STOCK as book_num ,
         Y_PRICE as book_old_money,
         XS_PRICE as book_pay_money,
         LEVEL,
         KG,
         region_one ,
         region_two,
         SXJ as book_type,
         INFO as book_introduce,
         details
         ',
    'ORDER_BOOK_LIST' => '
    ts_order_book.order_id,
    ts_order_book.book_id,
    ts_order_book.book_gg_id,
    ts_order_book.ob_name,
    ts_order_book.book_id,
    ',

    /*
     * 卖书订单状态
     */

    'ORDER_STATE' => array(1 => '待付款', 2 => '待发货', 3 => '待签收', 4 => '退换中', 5 => '已经完成', 6 => '已关闭', 7 => '全部',-1=>'伪删除'),

    /*
     * 收书订单操作状态
     */
    'HS_ORDER_STATE' => array(1 => '填写快递单号',  2 => '平台确认收件', 3 => '书籍审核中...', 4 => '确认打款', 5 => '已完成', 6 => '已关闭'), /*

    /*
     * 收书订单显示状态
     */
    'HS_ORDER_STATE_SHOW' => array(0 => '全部',1 => '审核书籍/呼叫快递',  2 => '快递单/确认收件',  3 => '品相审核', 4 => '平台打款',5 => '已完成',6=>'关闭'), /*

   /*
     * 卖书订单显示状态
     */
    'ORDER_STATE_SHOW' => array(0 => '全部',1 => '待付款',  2 => '待发货',  3 => '已发货/待签收', 4 => '退款中',5=>'已完成',6=>'已关闭'), /*


    /* 书籍价格
     */
    'BOOK_MONEY' => array('精装' => array('全新' => 1, '9.9成新' => 0.5, '9.5成新' => 0.45, '9成新' => 0.4, '9成新以下' => 0.3), '精装-套装' => array('全新' => 1, '9.9成新' => 0.5, '9.5成新' => 0.45, '9成新' => 0.4, '9成新以下' => 0.3), '平装' => array('全新' => 1, '9.9成新' => 0.4, '9.5成新' => 0.35, '9成新' => 0.3, '9成新以下' => 0.2), '平装-套装' => array('全新' => 1, '9.9成新' => 0.4, '9.5成新' => 0.35, '9成新' => 0.3, '9成新以下' => 0.2)),

    /*
     * 支付方式
     */
    'PAY_TYPE'=>array(1=>'微信',2=>'支付宝',3=>'余额'),

    /*
     * 主出库ID
     */
    'CK_ID'=>3,
    /*
     * 资金记录lable
     */
    'COST_LOG_LABLE'=>array(1=>'用户买书消费记录',2=>'用户卖书交易记录',3=>'用户充值记录'),
);